package adv3;

import adv2.Teacher;

import java.util.HashMap;
import java.util.Map;

/**
 * @author oldliu
 * @since 1.0
 */
public class MapTest2 {
    public static void main(String[] args) {
        Map<Teacher,String> map=new HashMap<>();
        map.put(new Teacher("小赵",22,"化学"),"合肥一中");
        map.put(new Teacher("老吴",32,"化学"),"合肥2中");
        map.put(new Teacher("老赵",44,"物理"),"合肥3中");
        System.out.println(map.size());
        System.out.println(map);
        map.put(new Teacher("老吴",12,"化学"),"合肥五中");
        System.out.println(">>>>>>>>>>>>>>>>>");
        System.out.println(map);
    }
}
